import http from "@/utils/http";

export default {
    // 查询权限组
    getAdminRoot_List: (data:object) =>
        http.get(
            "/Admin/getAdminRoot_List",
            {
                params:{...data}
            }
        ),
    // 查询用户权限组
    getUserRoot: (data:object) =>
        http.get(
            "/Admin/getUserRoot",
            {
                params:{...data}
            }
        ),
    // 修改权限
    updateAdminRoot: (data:any) =>
        http.post(
            "/Admin/updateAdminRoot",
            {...data}
        ),
    // 添加权限组
    addAdminRoot: (data:any) =>
        http.post(
            "/Admin/addAdminRoot",
            {...data}
        ),
    // 删除权限组
    deleteAdminRoot: (data:any) =>
        http.post(
            "/Admin/deleteAdminRoot",
            {...data}
        ),
};
